package com.example.datapedestal.toolChain.controller;

import com.example.datapedestal.toolChain.service.ToolChainService;
import com.example.datapedestal.toolChain.service.impl.ToolChainImpl;
import com.example.datapedestal.utils.vo.CommonResp;
import com.sun.istack.internal.NotNull;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author: ThinkPad
 * @since: 2023/11/4 12:58
 * @description:
 */
@Api(tags="工具链")
@RestController
@RequestMapping("/toolChain")
public class ToolChainController {

    private ToolChainImpl toolChain = ToolChainImpl.GetInstance();

    @ApiOperation("执行工具链")
    @PostMapping("/execute")
    public CommonResp execute(){
        toolChain.ExecutePlugins();
        return CommonResp.success(1);
    }
}
